<script lang="ts" setup>
const goBack = () => {
  if (window.history.length > 1) {
    window.history.back();
  }
  else {
    window.location.replace('/');
  }
};
</script>

<template>
  <section class="page-header-back flex flex-shrink-0 items-stretch">
    <button type="button" class="bg-transparent px-10" @click="goBack">
      <div class="i-icons:arrow-left-4 size-24 text-#6e6e6e"></div>
    </button>
  </section>
</template>

<style lang="scss" scoped>
</style>
